﻿
@{
    ViewBag.Title = "MyDesktop";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
    #region 仅仅作为功能演示用,切换生产环境时请删除
    ViewBag.Uploadify = true;//上传文件插件激活
    ViewBag.imageUpload = true;//上传图片插件激活
    ViewBag.getUeditor = true;//富文本编辑器插件激活
    ViewBag.enctype = "multipart/form-data"; //涉及上传文件/图片功能时需标注表单enctype
    #endregion
}
@section Js{
    <!--仅仅作为功能演示用,切换生产环境时请删除-->
    <script type="text/javascript">
        function showItem() {
            $.get('/admin/home/test', function (data) {
                var pattern = new RegExp('<script[^>]*>(.*?)<\/script>', 'i');
                var matchArr = data.match(pattern);
                var topFunsrc = [];
                $(matchArr).each(function (i, v) {
                    if (v.length > 0) {
                        if ($(v).prop("src").length > 0) {
                            topFunsrc.push($(v).prop("src"));
                            data = data.replace(v, "");
                        }
                    }
                });
                if ($("body #modaltest", window.parent.document).length == 0) {
                    $("body", window.parent.document).append(data);
                }
                $("body #modaltest", window.parent.document).modal({ backdrop: 'static', keyboard: false });
                $("#childFun", window.parent.document).html("");
                $(topFunsrc).each(function (i, v) {
                    parent.loadfun(v);
                });
            });
        }
    </script>
    <!--注释结束-->
}
<div class="page-header">
    <h1>
        首页
    </h1>
    <u style="cursor: pointer" id="show" onclick="showItem()">点此查看功能演示,切换生产环境时请删除</u>
</div>
<div class="row">
    <div class="col-xs-12">
        <div class="alert alert-block alert-success">
            <button type="button" class="close" data-dismiss="alert"></button>

            <i class="ace-icon fa fa-check green"></i>

            欢迎使用
            <strong class="green">
                纯净版
                <small>(v1.0)</small>
            </strong>,
            会员管理系统
        </div>
    </div>
</div>
